import elementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

import Divider from './components/Divider.vue'
import THeader from './components/Header.vue'
import TText from './components/TText';
import CardItem from './components/CardItem.vue';
import FootCardItem from './components/FootCardItem.vue';


export default (Vue) => {
  /* Vue.prototype.$confirm = MessageBox.confirm;
   Vue.prototype.$message = Message;*/

  Vue.directive(TText.name, TText.fun);
  Vue.use(elementUI);
  [
    Divider, THeader, CardItem, FootCardItem
  ].forEach(item => {
    Vue.component(item.name, item);
  });
}
